<?php

/**
 * Niushop商城系统 - 团队十年电商经验汇集巨献!
 * =========================================================
 * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
 * ----------------------------------------------
 * 官方网址: https://www.niushop.com
 * =========================================================
 */

namespace app\index\controller;

use app\model\shop\Shop as ShopModel;
use think\App;

class Index extends BaseIndex
{
    /**
     * 手机端预览
     */
    public function h5Preview()
    {
        $shop_model = new ShopModel();
        $res = $shop_model->qrcode(1)[ 'data' ][ 'path' ][ 'h5' ];

        $this->assign('h5_data', $res);
        $this->assign('is_mobile', request()->isMobile());
        return $this->fetch("index/h5_preview");
    }
}